import request from '@u/request'
import { HttpMethod } from '@u/http'

// 查询列表
export function listTopUp(query) {
  return request({
    url: '/beauty/topUp/list',
    method: HttpMethod.GET,
    params: query
  })
}

// 根据客户id查询
export function listTopUpByMemberId(query) {
  return request({
    url: `/beauty/topUp/listByMemberId`,
    method: HttpMethod.GET,
    params: query
  })
}

// 根据id查询
export function getTopUp(id) {
  return request({
    url: '/beauty/topUp/' + id,
    method: HttpMethod.GET
  })
}
